//
//  AlertHUD.m
//  Video
//
//  Created by iking on 2017/5/4.
//  Copyright © 2017年 iking. All rights reserved.
//

#import "AlertHUD.h"

@implementation AlertHUD
+ (UIAlertController *)addAlertHUDWithMessage:(NSString *)message block:(void (^)(void))block
{
    UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"提示" message:message preferredStyle:(UIAlertControllerStyleAlert)];
    UIAlertAction *okButton = [UIAlertAction actionWithTitle:@"ok" style:(UIAlertActionStyleCancel) handler:^(UIAlertAction * _Nonnull action) {
        if (action) {
            block();
        }
    }];
    [alertController addAction:okButton];
    return alertController;
    
}

@end
